Skip to content

feature/AB#9074 - Add Comments to Applicant profile#2190

Merged
JamesPasta merged 22 commits intodevfrom
feature/AB#9074-applicant-comments
Apr 1, 2026
Merged

feature/AB#9074 - Add Comments to Applicant profile#2190
JamesPasta merged 22 commits intodevfrom
feature/AB#9074-applicant-comments

Conversation

@plavoie-BC
Copy link
Copy Markdown
Contributor

@plavoie-BC plavoie-BC commented Mar 28, 2026

Pull request overview

Adds support for comments on the Applicant profile by extending the shared CommentsWidget to operate under /GrantApplicants/..., introducing a new ApplicantComment type persisted in the tenant DB, and updating comment-mention email notifications to link to either application or applicant details.

Changes:

  • Add ApplicantComment domain/entity support (enum + EF Core table/migration + repository + mappings) and wire it into CommentsManager.
  • Enable CommentsWidget rendering/refreshing on Applicant Details (new widget route + Applicant Details UI/JS wiring).
  • Update mention-notification payload and link generation to handle applicant comments.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for comments on the Applicant profile by extending the shared CommentsWidget to operate under /GrantApplicants/..., introducing a new ApplicantComment type persisted in the tenant DB, and updating comment-mention email notifications to link to either application or applicant details.

Changes:

  • Add ApplicantComment domain/entity support (enum + EF Core table/migration + repository + mappings) and wire it into CommentsManager.
  • Enable CommentsWidget rendering/refreshing on Applicant Details (new widget route + Applicant Details UI/JS wiring).
  • Update mention-notification payload and link generation to handle applicant comments.

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/Default.js Updates mention-notification request payload (now posts ownerId/commentType).
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/Default.cshtml Adds widget data attributes and adjusts container id format for comment counters/metadata.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/CommentsWidget/CommentsWidgetController.cs Adds applicant widget route prefix so refresh works from /GrantApplicants/....
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.js Adjusts comment counter update delay.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/GrantApplications/Details.cshtml Replaces numeric commentType args with CommentType enum values.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/Applicants/Details.js Adds comments widget initialization + refresh subscription + counters.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Pages/Applicants/Details.cshtml Adds Comments tab content and passes applicant comment type into CommentsWidget.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Repositories/ApplicantCommentsRepository.cs New EF Core repository for applicant comments list queries.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/GrantTenantDbContextModelSnapshot.cs Snapshot updated for ApplicantComments table and relationships.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260309215203_AB9074_Add_Applicant_Comments.cs Adds ApplicantComments table migration.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/Migrations/TenantMigrations/20260309215203_AB9074_Add_Applicant_Comments.Designer.cs Migration designer for the new table.
applications/Unity.GrantManager/src/Unity.GrantManager.EntityFrameworkCore/EntityFrameworkCore/GrantTenantDbContext.cs Adds DbSet<ApplicantComment> and configures entity mapping/relationships.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/CommentsManager.cs Adds ApplicantComment handling across create/get/update/display/pin persistence.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/AssessmentComment.cs Refactors file-scoped namespace/class layout (no behavior change).
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/ApplicationComment.cs Refactors file-scoped namespace/class layout (no behavior change).
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Comments/ApplicantComment.cs New domain entity for applicant comments.
applications/Unity.GrantManager/src/Unity.GrantManager.Domain.Shared/Comments/CommentType.cs Adds ApplicantComment and configures string enum JSON serialization.
applications/Unity.GrantManager/src/Unity.GrantManager.Application/GrantManagerApplicationAutoMapperProfile.cs Adds ApplicantComment → CommentDto mapping.
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Domain.Shared/Comments/CommentType.cs Adds notifications-side CommentType enum to mirror GrantManager and serialize as strings.
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Application/EmailNotificaions/EmailNotificationService.cs Updates comment notification link generation (application vs applicant).
applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Application.Contracts/Emails/EmailCommentDto.cs Updates comment notification DTO contract (OwnerId + CommentType).
applications/Unity.GrantManager/.github/agents/feature-planner.agent.md Updates agent metadata/instructions (not directly related to feature runtime).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@plavoie-BC plavoie-BC requested a review from JamesPasta March 28, 2026 00:49
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@plavoie-BC plavoie-BC marked this pull request as ready for review March 28, 2026 00:59
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

1 similar comment
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 573
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@JamesPasta JamesPasta merged commit 7173580 into dev Apr 1, 2026
22 checks passed
@JamesPasta JamesPasta deleted the feature/AB#9074-applicant-comments branch April 1, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants